#!/usr/bin/env bash
CURRENT_DIR=$(cd "$(dirname "$0")" && pwd)
mkdir -p ${CURRENT_DIR}/es/data
mkdir -p ${CURRENT_DIR}/es/logs
mkdir -p ${CURRENT_DIR}/es/plugins
#必须授权，不然启动失败
chmod -R 777 ${CURRENT_DIR}/es
docker-compose up -d